DATA ALLDSETS;
	SET ALLDSETS;	
	QSTRING = OUTLET_CD || QT_CD || VER_CD;
RUN;

PROC SORT DATA = ALLDSETS;
	BY OUTLET_CD;
RUN;

DATA UNIQUEOUTLETS;
	SET ALLDSETS;
	BY OUTLET_CD;
	IF NOT FIRST.OUTLET_CD THEN DELETE;
RUN;

PROC SORT DATA = ALLDSETS;
	BY QSTRING;
RUN;

DATA UNIQUESTRINGS;
	SET ALLDSETS;
	BY QSTRING;
	IF NOT FIRST.QSTRING THEN DELETE;
RUN;
